<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../admin.inc.jsp"%>
<script>
function callback(success, msg) {
	if (success) {
		alertMsg.info(msg);
		navTab.closeCurrentTab();		
		navTab.reload("", {
			lastTabId : ""
		});
	}else{
		alertMsg.warn(msg);
	}
}
function toSubmit() {		
	//var obj = $("#upload");
	var form = $("#form_userAuthInfo_edit");
	form.submit();
}
</script>
<div class="pageContent">
	<s:form name="myForm" id="form_userAuthInfo_edit" action="/admin/userAuthInfo/infoSave"
		method="POST" enctype="multipart/form-data" target="hidden_frame">
		<div class="panelBar">
			<ul class="toolBar">
	            <li><a onclick="toSubmit()" iconClass="accept"  href="javaScript:void(0);"
	               width="450" height="200" title="保存">
	               <span>保存</span>
	            </a></li>
	        </ul>
		</div>
		<div class="pageFormContent" layoutH="58">
		<input type="hidden" name="userAuthInfo.id" value="${userAuthInfo.id}"  >
			<p class="nowrap">
				<label style="width:100px;">用户ID：</label>
				<input type="text" name="userAuthInfo.userId" value="${userAuthInfo.userId}"  readonly>
			</p>
			
			<p class="nowrap">
				<label style="width:100px;">名称：</label>
				<input type="text" name="userAuthInfo.name" value="${userAuthInfo.name}" >
			</p>
			
			<p class="nowrap">
				<label style="width:100px;">联系电话：</label>
				<input type="text" name="userAuthInfo.phone" value="${userAuthInfo.phone}" >
			</p>
			
			<p class="nowrap">
				<label style="width:100px;">地址：</label>
				<input type="text" name="userAuthInfo.addr" value="${userAuthInfo.addr}" >
			</p>
			<p class="nowrap">
				<label style="width:100px;">申请类型：</label>
				<select name="userAuthInfo.authType">
					<option value="1" ${userAuthInfo.authType==1?'selected' :''}>企业用户</option>
					<option value="2" ${userAuthInfo.authType==2?'selected' :''}>个人用户</option>
				</select>
			</p>
			<p class="nowrap">
				<label style="width:100px;">认证类型：</label>
				<select name="userAuthInfo.type">
					<option value="1" ${userAuthInfo.type==1?'selected' :''}>广告公司</option>
					<option value="2" ${userAuthInfo.type==2?'selected' :''}>摄影棚 </option>
					<option value="3" ${userAuthInfo.type==3?'selected' :''}>模特经纪公司</option>
					<option value="6" ${userAuthInfo.type==6?'selected' :''}>脚本创作/美术指导</option>
					<option value="7" ${userAuthInfo.type==7?'selected' :''}>服装搭配/化妆 </option>
					<option value="8" ${userAuthInfo.type==8?'selected' :''}>自由摄影师/摄影助理</option>
					<option value="9" ${userAuthInfo.type==9?'selected' :''}>修图师/后期制作</option>
					<option value="10" ${userAuthInfo.type==10?'selected' :''}>其他商家</option>
				</select>
			</p>
			<p style='height:60px; ' class="nowrap">
				<label style="width:100px;">营业执照照片：</label>
				<a href="${userAuthInfo.businessLicense }"  rel="businessLicense" target="_blank" title="营业执照照片"> 
				 <img alt="" src="${userAuthInfo.businessLicense }"  style='height:60px; border: 1px solid silver;'></a>
			</p>
			
			<p style='height:60px; ' class="nowrap">
				<label style="width:100px;">身份证正面照片：</label>
				<a href="${userAuthInfo.idCardPositive }"  rel="idCardPositive" target="_blank" title="身份证正面照片"> 
				 <img alt="" src="${userAuthInfo.idCardPositive }"  style='height:60px; border: 1px solid silver;'></a>
			</p>
			
			<p style='height:60px; ' class="nowrap">
				<label style="width:100px;">手持身份证的人照片：</label>
				<a href="${userAuthInfo.idCardBack }"  rel="idCardBack" target="_blank" title="手持身份证的人照片"> 
				 <img alt="" src="${userAuthInfo.idCardBack }"  style='height:60px; border: 1px solid silver;'></a>
			</p>
			
			<%-- <p style='height:60px; ' class="nowrap">
				<label style="width:100px;">手持身份证的人照片：</label>
				<a href="${item.idCardHolder }"  rel="idCardHolder" target="_blank" title="手持身份证的人照片"> 
				 <img alt="" src="${item.idCardHolder }"  style='height:60px; border: 1px solid silver;'></a>
			</p> --%>
			
			<p class="nowrap">
				<label style="width:100px;">申请时间：</label>
				<input type="text" name="item.applyTime" 
				value="<fmt:formatDate value='${userAuthInfo.applyTime}' pattern="yyyy-MM-dd HH:mm:ss" />" readonly="true">
			</p>

			<p class="nowrap">
				<label style="width:100px;">状态：</label>
				<select disabled="disabled">
						<option value="01"  ${userAuthInfo.approveStatus=="01"?"selected":""}>待审核</option>
						<option value="02"  ${userAuthInfo.approveStatus=="02"?"selected":""}>驳回</option>
						<option value="03"  ${userAuthInfo.approveStatus=="03"?"selected":""}>审核通过</option>
				</select>
			</p>
			
			<%-- <p class="nowrap">
				<label style="width:100px;">审核意见：</label>
				<input type="text" name="item.approveRemark" value="${item.approveRemark}" readonly="true">
			</p> --%>
			
			<%-- <p class="nowrap">
				<label style="width:100px;">审核时间：</label> 
				<input type="text" name="item.approveTime" 
				value="<fmt:formatDate value='${item.approveTime}' pattern="yyyy-MM-dd HH:mm:ss" />" readonly="true">
			</p> --%>
		</div>
	</s:form>
</div>
<iframe name='hidden_frame' id="hidden_frame" style='display: none'></iframe>